﻿using Microsoft.EntityFrameworkCore;
using SmartProduction.Domain;
using SmartProduction.Domain.ProductionOrders;
using SmartProduction.Domain.Ptoduction;
using SmartProduction.Domain.yjh;
using SmartProduction.Domain.客户管理;
using SmartProduction.Domain.客户管理.WorkOrder;
using SmartProduction.Domain.采购委外订单;

namespace SmartProduction.Infarstructrue
{
    public class DataDbContext : DbContext
    {
        public DataDbContext(DbContextOptions options) : base(options)
        {
        }
        public DbSet<Allocate> Allocates { get; set; }
        public DbSet<Freight> Freights { get; set; }
        public DbSet<MaterialList> MaterialLists { get; set; }
        public DbSet<MaterialListInventory> MaterialListInventorys { get; set; }
        public DbSet<MaterialInfo> MaterialInfo { get; set; }

        /// <summary>
        /// 工单-采购订单
        /// </summary>
        public DbSet<Work_CaigouOrder> caigouOrder_work { get; set; }

        /// <summary>
        /// 工单-基础信息
        /// </summary>
        public DbSet<work_Invoice> invoice_work { get; set; }

        /// <summary>
        ///工单-销售订单
        /// </summary>
       public DbSet<work_SalesOrder> salesorder_work { get; set; }


        public DbSet<MaterialListType> MaterialListTypes { get; set; }
        public DbSet<Process> Processs { get; set; }
        public DbSet<ProductPlan> ProductPlans { get; set; }
        public DbSet<WareHouse> WareHouses { get; set; }
        public DbSet<Workflows> Workflowss { get; set; }
        public DbSet<LogModel> logModels { get; set; }
        public DbSet<Depart> Departs { get; set; }
        public DbSet<ProcessRoute> ProcessRoutes { get; set; }
        public DbSet<Purchase> Purchases { get; set; }
        public DbSet<Supplier> Suppliers { get; set; }
        public DbSet<ClientInfo> ClientInfos { get; set; }
        public DbSet<GodownEntry> GodownEntrys { get; set; }
        public DbSet<Industry> Industrys { get; set; }
        public DbSet<ResourceInfo> ResourceInfos { get; set; }
        public DbSet<ResourceUnit> ResourceUnits { get; set; }
        public DbSet<SalesOrder> SalesOrders { get; set; }
        public DbSet<TypeExpence> TypeExpences { get; set; }
        public DbSet<Allocation> Allocations { get; set; }
        public DbSet<Job> Jobs { get; set; }
        public DbSet<Manifest> Manifests { get; set; }
        public DbSet<STask> STasks { get; set; }
        public DbSet<Approval> approvals { get; set; }

        public DbSet<Enterprise> Enterprises { get; set; }
        public DbSet<ProductPlanTwo> productPlanTwos { get; set; }

        public DbSet<Purchasedetails> Purchasedetails { get; set; }

        public DbSet<ScheduledCommand> ScheduledCommands { get; set; }

        public DbSet<SalesOrderDetails> salesOrderDetails { get; set; }
        /// <summary>
        /// BOM管理
        /// </summary>
        public DbSet<Bom> boms { get; set; }
        /// <summary>
        /// BOM管理
        /// </summary>
        public DbSet<BomParts> BomPartss { get; set; }
        /// <summary>
        /// BOM管理
        /// </summary>
        public DbSet<ProcessInfo> processInfos { get; set; }
        /// <summary>
        /// BOM管理
        /// </summary>
        public DbSet<OperationRecord> operationRecords { get; set; }


        public DbSet<MaterListq> MaterialListqs { get; set; }
        /// <summary>
        ///  工单基本信息
        /// </summary>
        public DbSet<Basicinformation> Basicinformations { get; set; }
        /// <summary>
        /// 生产物品
        /// </summary>
        public DbSet<ItemListInfo> ItemListInfos { get; set; }
        /// <summary>
        ///  工序流程
        /// </summary>
        public DbSet<Processflow> Processflows { get; set; }
        /// <summary>
        /// 生产物品
        /// </summary>
        public DbSet<Productiongoods> Productiongoodss { get; set; }
        /// <summary>
        /// 生产单号列表
        /// </summary>
        public DbSet<ProductionOrderNoInfo> ProductionOrderNoInfos { get; set; }




        /// <summary>
        /// 基本信息表
        /// </summary>
        public DbSet<ProductionWorkOrderBasicInfoSheet> GongDanXinXi { get; set; }
        /// <summary>
        /// 生产物品表
        /// </summary>
        public DbSet<ProductionItem> GongDanWuPin { get; set; }
        /// <summary>
        /// 工序流程表
        /// </summary>
        public DbSet<ProcessFlowSheet> GongDanLiuCheng { get; set; }
        /// <summary>
        /// 生产单号表
        /// </summary>
        public DbSet<AssociatedProductionOrder> DanHaoId { get; set; }
        /// <summary>
        /// 生产单号--物品表
        /// </summary>
        public DbSet<item_classification_detail> WuPinId { get; set; }


    }
}
